package service;

import UI.Clientcontext;
import UI.ExamFrame;
import UI.LoginFrame;
import UI.MenuFrame;
import UI.ProgressbarFrame;
import UI.ScoreFrame;
import UI.WelcomeFrame;

public class Main {
	public static void main(String[] args) {
		Controller con = new Controller();
		Clientcontext client = new Clientcontext();
		MenuFrame menuframe = new MenuFrame();
		LoginFrame loginframe = new LoginFrame();
		ExamFrame examframe = new ExamFrame();
		WelcomeFrame welcomeframe = new WelcomeFrame();
		ScoreFrame scoreframe = new ScoreFrame();
		ProgressbarFrame progressbarframe = new ProgressbarFrame();
		
		client.setLoginframe(loginframe);
		client.setMenuframe(menuframe);
		client.setCon(con);
		client.setExamframe(examframe);
		client.setWelcomeFrame(welcomeframe);
		client.setScoreframe(scoreframe);
		client.setProgressbarframe(progressbarframe);

		menuframe.setCon(con);
		loginframe.setClient(client);
		menuframe.setClient(client);
		examframe.setClient(client);
		scoreframe.setClient(client);
		con.setClient(client);

		client.show();

	}
}
